package cz.patamat.web;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cz.patamat.support.EmailValidator;

/**
 * Show promotion web. Promotion web is temporary web page shown until real system is ready.
 *
 */
@SuppressWarnings("serial")
public class ShowProtowebServlet extends HttpServlet {
	
	public static final String PROMOWEB_URL = "/WEB-INF/view/promoweb.jsp";
	
	public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		req.setAttribute("emailExample", EmailValidator.EMAIL_EXAMPLE);
		req.getRequestDispatcher(PROMOWEB_URL).forward(req, resp);
	}
	
}
